Skip to content

feat(desktop): remove close buttons from sidebar inline agent dropdown - #6144

Merged
Kitenite merged 1 commit into
mainfrom
remove-agent-close-button
Aug 3, 2026
Merged

Kitenite merged 1 commit into
mainfrom
remove-agent-close-button

Conversation

@Kitenite

@Kitenite Kitenite commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Removes the per-agent stop (×) button and the "Stop all agents" footer from the running-agents hover card on the dashboard sidebar workspace row. The card is now open/navigate-only; each row always shows the agent's status instead of swapping it for a × on hover.
  • Deletes the now-orphaned useDashboardSidebarAgentKill hook and the chip's kill-pending spinner state.

How It Works

DashboardSidebarAgentHoverRow drops the grid overlay that swapped status text and the × in one cell; the status label is now a plain always-visible span. DashboardSidebarAgentsChip drops the separator + footer button, handleStopAll, and the isPending plumbing (spinner, disabled, aria-busy) that only existed for the kill flow.

Manual QA (CDP, end-to-end)

Verified in this workspace's dev desktop instance (Vite port 3765, CDP 9250, signed-in session with active org confirmed). Since the chip only renders with 2+ running agents, launched two Claude agents in a workspace via the real presets bar, then clicked the sidebar "✳ 2" chip with real mouse input.

Hover card open with an agent row hovered — no × on the row, no separator, no "Stop all agents" footer:

agents hover card after removal

Full window for context:

full window

DOM inspection of the open card confirms zero stop/close buttons. Chip open/close toggle and row click-through to the workspace still work (used them during capture).

  • Chip renders with 2 running agents and opens the card on click
  • Agent rows show label + status only; hovering a row reveals no ×
  • No separator/footer below the agent list
  • Clicking an agent row still navigates to that agent's terminal

Testing

  • bun run lint (clean)
  • tsc --noEmit for apps/desktop (clean)

Screenshots live on the evidence/remove-agent-close-button branch per the repo's evidence convention.


Summary by cubic

Removed per‑agent stop buttons and the “Stop all agents” footer from the desktop sidebar agents hover card. The card is now navigation‑only: rows always show status, and the chip shows avatar + count.

  • Refactors
    • Removed kill controls and deleted useDashboardSidebarAgentKill.
    • Simplified DashboardSidebarAgentsChip by dropping pending state, spinner, toasts, and disabled logic.
    • Simplified DashboardSidebarAgentHoverRow to show a plain, always-visible status label (no hover swap or kill button).

Written for commit f01ff5b. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Changes
    • Simplified the dashboard sidebar’s agent display.
    • Agent counts now appear directly without loading indicators.
    • Agent rows consistently show status information.
    • Removed controls for stopping individual or all agents from the sidebar.

The agents hover card on the dashboard sidebar workspace row no longer
offers a per-agent stop button or a 'Stop all agents' footer; rows are
open-only with their status always visible. Deletes the now-orphaned
useDashboardSidebarAgentKill hook.
@coderabbitai

coderabbitai Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8ab97e28-ea3f-4ba3-8c14-39807dad060b

📥 Commits

Reviewing files that changed from the base of the PR and between a8bf887 and f01ff5b.

📒 Files selected for processing (4)
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/components/DashboardSidebarAgentsChip/DashboardSidebarAgentsChip.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/components/DashboardSidebarAgentsChip/components/DashboardSidebarAgentHoverRow/DashboardSidebarAgentHoverRow.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/hooks/useDashboardSidebarAgentKill/index.ts
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/hooks/useDashboardSidebarAgentKill/useDashboardSidebarAgentKill.ts
💤 Files with no reviewable changes (2)
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/hooks/useDashboardSidebarAgentKill/index.ts
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/hooks/useDashboardSidebarAgentKill/useDashboardSidebarAgentKill.ts

📝 Walkthrough

Walkthrough

The dashboard sidebar agents chip and hover row no longer support stopping agents. The chip displays the agent count directly, while each hover row displays its status without a stop button. The agent-kill hook and its re-export were removed.

Changes

Agent sidebar controls

Layer / File(s) Summary
Agents chip display
apps/desktop/.../DashboardSidebarAgentsChip.tsx
The chip removes stop-related dependencies and loading presentation. It displays the agent count directly.
Agent row display and kill-hook removal
apps/desktop/.../DashboardSidebarAgentHoverRow.tsx, apps/desktop/.../hooks/useDashboardSidebarAgentKill/*
The hover row displays agent status without a stop button. The agent-kill hook and its re-export are removed.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

Possibly related PRs

Suggested reviewers: saddlepaddle

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title uses conventional commit format and clearly describes the removal of close buttons from the sidebar agent dropdown.
Description check ✅ Passed The description explains the changes, testing steps, manual QA results, and user-visible behavior; only the template checklist is omitted.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch remove-agent-close-button

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR makes the dashboard sidebar’s running-agents card open/navigate-only by removing individual and bulk stop controls.

  • Keeps each agent’s status visible while hovering its row.
  • Removes the stop-all footer and kill-pending chip state.
  • Deletes the now-unused sidebar agent-kill hook.

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified.

The stop controls, associated pending state, and kill hook were removed consistently, while the card’s remaining display and navigation behavior stays intact and no references to the deleted module remain.

Important Files Changed

Filename Overview
apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/components/DashboardSidebarAgentsChip/DashboardSidebarAgentsChip.tsx Removes bulk-stop behavior and pending UI state while preserving hover-card toggling and agent navigation.
apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/components/DashboardSidebarAgentsChip/components/DashboardSidebarAgentHoverRow/DashboardSidebarAgentHoverRow.tsx Removes the per-agent stop control and keeps the status label permanently visible without altering row navigation.
apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarExpandedWorkspaceRow/components/DashboardSidebarWorkspaceChips/hooks/useDashboardSidebarAgentKill/useDashboardSidebarAgentKill.ts Deletes the orphaned agent-kill hook after all of its consumers were removed.

Reviews (1): Last reviewed commit: "feat(desktop): remove close buttons from..." | Re-trigger Greptile

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

Architecture diagram
sequenceDiagram
    participant User
    participant Chip as DashboardSidebarAgentsChip
    participant Card as HoverCardContent
    participant Row as DashboardSidebarAgentHoverRow
    participant Nav as Navigation (Router)

    Note over Chip, Nav: Simplified Navigation-Only Flow

    User->>Chip: Hover or Click Chip
    Chip->>Chip: Calculate primary agent (priority + recency)
    Chip->>Card: NEW: Open navigation card (no footer/stop actions)
    
    loop For each running agent
        Card->>Row: Render agent info
        Row->>Row: CHANGED: Render static status label (always visible)
        Note right of Row: No stop (X) button or hover-swap logic
    end

    User->>Row: Click Agent Row
    Row->>Nav: navigateToV2Workspace(workspaceId, terminalId)
    Nav-->>User: Navigate to Agent Terminal

    opt CHANGED: Component Cleanup
        Note over Chip, Row: Deleted useDashboardSidebarAgentKill hook
        Note over Chip, Row: Removed isPending/spinner states
    end
Loading

Re-trigger cubic

@Kitenite
Kitenite merged commit 9c101b4 into main Aug 3, 2026
12 checks passed
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

🧹 Preview Cleanup Complete

The following preview resources have been cleaned up:

  • ⚠️ Neon database branch

Thank you for your contribution! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant